﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.DTO.Shopfloor.DTO;
using PowerHub.MES.DTO.Shopfloor.QueryDTO;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.Shopfloor;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IShopfloor
{
    /// <summary>
    /// 产线接口层
    /// </summary>
    public interface IShopfloor_ProductionLineServices
    {
        /// <summary>
        /// 获取产线列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<Shopfloor_ProductionLine>>> GetShopfloor_ProductionLinePageListAsync(QueryShopfloor_ProductionLineDTO query);


        /// <summary>
        /// 添加产线
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateShopfloor_ProductionLineAsync(Shopfloor_ProductionLineDTO query);

        /// <summary>
        /// 批量删除产线
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionShopfloor_ProductionLineAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateShopfloor_ProductionLineAsync(Shopfloor_ProductionLineDTO query);

        /// <summary>
        /// 根据产线Id获取产线工作站列表
        /// </summary>
        /// <returns></returns>
        /// <exception cref="Exception"></exception>
        public Task<OperationResult<List<Shopfloor_WorkStation>>> GetShopfloor_ProductionLineByIdWorkStationListAsync(QueryShopfloor_ProductionLineDTO pageQuery);
    }
}
